<jsp:useBean id="Anhaengertyp" class="beans.Anhaengertyp" scope="page" />
<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>An&auml;nger Suchen</title>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.8.3.js"></script>
<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
    <script>
    $(function() {
        $( "#von" ).datepicker();
    });
    $(function() {
        $( "#bis" ).datepicker();
    });
    </script>
</head>
<body>
	<form action="anhangersuche.jsp" method="post">
	<table>
	<td>
	<tr>
	Anh&auml;ngertyp
	<select name="typ" size="1" id="typ">
<% 
String[] typen = Anhaengertyp.getAnhaengertypen();
		for(int i=0; i<typen.length; i++)
			{
			out.println("<option>" + typen[i] + "</option>");
			}
			
%>	
		
		   </select>
	</tr>
	<tr>Von: <input type="text" name="von" id="von" /></tr>
	<tr>Bis: <input type="text" name="bis" id="bis" /></tr>
	<tr>Tage: <input type="text" name="days" /></tr>
	<tr>
		<input type="submit" name="submit" value="Anh&auml;nger suchen" /> 
	</tr>
	</td>
	</table>
	</form>
</body>
</html>